getResult

inline fun <T> Array<out T>.getResult(index: Int): Result<T>(source)

An alternative to the Array.get function that wraps it in a Result.


inline fun <T> List<T>.getResult(index: Int): Result<T>(source)

An alternative to the List.get function that wraps it in a Result.


inline fun <K, V> Map<K, V>.getResult(key: K): Result<V>(source)

An alternative to the Map.get function that wraps it in a Result.


inline fun <T> Array<out T>.getResult(index: Int, message: Array<out T>.(Int) -> String): Result<T>(source)

An alternative to the Array.get function that wraps it in a Result with the provided message


inline fun <T> List<T>.getResult(index: Int, message: List<T>.(Int) -> String): Result<T>(source)

An alternative to the List.get function that wraps it in a Result with the provided message


inline fun <K, V> Map<K, V>.getResult(key: K, message: Map<K, V>.(K) -> String): Result<V>(source)

An alternative to the Map.get function that wraps it in a Result with the provided message